<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<jsp:useBean class="com.sys.users.pojo.TUsers" id="pojo"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>个人中心 - 高档茶叶与茶具销售系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/IndexHeadServlet">
			<jsp:param value="header" name="method"/>
		</jsp:include>
		<section class="page-content-wrapper pt-100 pb-40">
			<!-- checkout-area start -->
			<div class="checkout-area">
				<div class="container">
					<div class="row">
						<form action="${rootPath }/head/UsersHeadServlet?method=usersUpdateSubmit" method="post">
							<input type="hidden" name="operType" value="${param.operType }">
							<div class="col-lg-6 col-md-6">
								<div class="checkbox-form">
									<h3>修改个人信息</h3>
									<div class="row">
										<div class="col-md-12">
											<div class="checkout-form-list">
												<label>邮箱:</label>
												<input type="text" id="email" placeholder="email" name="email" value="${one.email}">
											</div>
										</div>
										<div class="col-md-12">
											<div class="checkout-form-list">
												<label>昵称:</label>
												<input type="text" id="nickName" placeholder="昵称" name="nickName" value="${one.nickName}">
											</div>
										</div>
										<div class="col-md-12">
											<div class="checkout-form-list">
												<label>真实姓名:</label>
												<input type="text" id="trueName" placeholder="真实姓名" name="trueName" value="${one.trueName}">
											</div>
										</div>
										<div class="col-md-12">
											<div class="checkout-form-list">
												<label>性别:</label>
												<select name="sex">
													<c:forEach items="${pojo.enumsMap }" var="me" varStatus="stat">
														<c:if test="${fn:startsWith(me.key,'SEX_')}">
															<!-- 拆分,按照-拆分,取最后一个 -->
															<c:set value="${fn:split(me.key, '-')}" var="keys"/>
															<option value="${keys[1] }" ${one.sex == keys[1] ? 'selected' : '' }>${me.value }</option>
														</c:if>
													</c:forEach>
												</select>
											</div>
										</div>
										<div class="order-button-payment">
											<input type="submit" value="提交">
										</div>
										<div class="col-md-12">
											<div class="checkout-form-list">
												<label>${response.info }</label>
											</div>
										</div>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			<!-- checkout-area end -->
		</section>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>